package com.neuedu.javase.inner;

/**
 * @auth 金山老师
 * title:   书籍代码
 * creatime: 2022-09-27 11:35
 * 描述 :
 */
public class Outer {
    private String name;

    private void method(){

    }


    private class Inner{
        String name;
        int age;

        public void m1(){
            System.out.println("内部类的，方法");
        }
    }


    public static void main(String[] args) {
        System.out.println("outer");


        //内部类的创建对象
        Outer out = new Outer();
        System.out.println("out.name = " + out.name);
        Inner inner = out.new Inner();
        inner.m1();

    }



}
